| Total Complexity | 6 | 
| Total Lines | 55 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | import {Entity, Column, PrimaryGeneratedColumn} from 'typeorm'; | 
            ||
| 2 | |||
| 3 | @Entity()  | 
            ||
| 4 | export class Address { | 
            ||
| 5 |   @PrimaryGeneratedColumn('uuid') | 
            ||
| 6 | private id: string;  | 
            ||
| 7 | |||
| 8 |   @Column({type: 'varchar', nullable: false}) | 
            ||
| 9 | private street: string;  | 
            ||
| 10 | |||
| 11 |   @Column({type: 'varchar', nullable: false}) | 
            ||
| 12 | private city: string;  | 
            ||
| 13 | |||
| 14 |   @Column({type: 'varchar', length: 6, nullable: false}) | 
            ||
| 15 | private zipCode: string;  | 
            ||
| 16 | |||
| 17 |   @Column({type: 'varchar', length: 2, nullable: false}) | 
            ||
| 18 | private country: string;  | 
            ||
| 19 | |||
| 20 |   constructor(street: string, city: string, zipCode: string, country: string) { | 
            ||
| 21 | this.street = street;  | 
            ||
| 22 | this.city = city;  | 
            ||
| 23 | this.zipCode = zipCode;  | 
            ||
| 24 | this.country = country;  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 |   public getId(): string { | 
            ||
| 28 | return this.id;  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 |   public getStreet(): string { | 
            ||
| 32 | return this.street;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 |   public getCity(): string { | 
            ||
| 36 | return this.city;  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 |   public getZipCode(): string { | 
            ||
| 40 | return this.zipCode;  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 |   public getCountry(): string { | 
            ||
| 44 | return this.country;  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | public update(  | 
            ||
| 48 | street: string,  | 
            ||
| 49 | city: string,  | 
            ||
| 50 | zipCode: string,  | 
            ||
| 51 | country: string  | 
            ||
| 52 |   ): void { | 
            ||
| 53 | this.street = street;  | 
            ||
| 54 | this.city = city;  | 
            ||
| 55 | this.zipCode = zipCode;  | 
            ||
| 56 | this.country = country;  | 
            ||
| 57 | }  | 
            ||
| 59 |